<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
	<title>赚钱吧</title>
	<script src="https://ksc.cdn.tj.asm8.com/WeChatMinApp%2Ftry_play%2FAndroid%2Fgeneralize%2Fflexible.js"></script>
	<style type="text/css">
		body{
			width: 100vw;
			height: 100vh;
		}

		.content_wrap{
			width: 100%;
			height: 100%;

			position: relative;

			display: flex;
			flex-direction: column;
	    	align-items: center;


		}

		.content_bg{
			width: 10rem;
			height: 12.34666666rem;
		}

		.get_btn{
			width: 7.4666666rem;
			height: 1.4666666rem;

			position: absolute;
			bottom: 1rem;
		}



		.modal-mask {
	        width: 100vw;
	        height: 100vh;
	        position:fixed;
	        top:0;
	        left:0;
	        right:0;
	        background-color: rgba(0,0,0,0.8);;
	        overflow: hidden;
	        z-index: 9000;
	        color: #fff;
	    }

	    .wx-lo-tip{
	        width: 6.5rem;
	        position: absolute;
	        right: 0.2rem;
	    }


	</style>
</head>
<body>

	<div class="content_wrap">
		<img class="content_bg" src="https://ksc.cdn.tj.asm8.com/WeChatMinApp%2Ftry_play%2FAndroid%2Fgeneralize%2Fcontent_bg2.jpg" alt="">

		<img class="get_btn" src="https://ksc.cdn.tj.asm8.com/WeChatMinApp%2Ftry_play%2FAndroid%2Fgeneralize%2Fzqb2_btn.png" onclick="onBtn()" />
	</div>

	<div id="modal-mask" class="modal-mask modal-mask-wx-lo" style="display: none;" onclick="coloseModal()">
        <img class="wx-lo-tip" src="https://ksc.cdn.tj.asm8.com/WeChatMinApp%2Ftry_play%2FAndroid%2Fgeneralize%2Flo_ios.png" alt="">
    </div>

	<script type="text/javascript">
		if(!is_weixn()){
			document.body.style.height = '93vh';
		}


		function onBtn(){
	        if(is_weixn()){
	            var modal = document.getElementById('modal-mask');
	            modal.style.display = 'block';
	        }else{
	            var param = getParam()
	            var url = "https://v2.zhuanqianba.cn/extend/repair.html?install=true&invite_code="+param.invite_code
	            window.location.href = url
	        }
	    }

	    function coloseModal() {
	        var modal = document.getElementById('modal-mask');
	        modal.style.display = 'none';
	    }

	    function is_weixn(){
	        var ua = navigator.userAgent.toLowerCase();
	        if(ua.match(/MicroMessenger/i)=="micromessenger") {
	            return true;
	        } else {
	            return false;
	        }
	    }

	    function getParam() {
	        var url = location.search; //获取url中"?"符后的字串
	        console.log("url",url)
	        var theRequest = new Object();
	        if (url.indexOf("?") != -1) {
	            var str = url.substr(1);
	            strs = str.split("&");
	            for(var i = 0; i < strs.length; i ++) {
	                theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
	            }
	        }
	        return theRequest;
	    }

	</script>
</body>
</html>
